package com.potenza.training.dictionary.controller;

import com.potenza.training.dictionary.entity.Industry;
import com.potenza.training.dictionary.server.impl.IndustryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/hope")
public class IndustryContorller {

    @Autowired
    IndustryService industryService;

    @GetMapping("findindustry")
    public List<Industry> findindustry(){

        return  industryService.findindustry();
    }
}
